#ifndef AN_MAINWIN_H
#define AN_MAINWIN_H

#include <QObject>
#include <QWidget>

#include "ui_mainwin.h"
#include "ui_mainpage.h"
#include "ui_apppage.h"
#include "ui_filepage.h"
#include "ui_contactpage.h"

#include "AnAdbchoseDialog.h"
#include "AnCallback.h"
#include "AnGlobal.h"



class AnMainwin : public QWidget
{
    Q_OBJECT

public:
    Ui::mainwin * mw;
    Ui::mainpage * mp;
    Ui::apppage * ap;
    Ui::filepage * fp;
    Ui::contactpage * cp;

    void * _adb_check_cb;
    void * _devices_refresh_cb;
    void * _connect_close_cb;
    void * _connect_build_cb;

    void setMainwin();
    void setMainpage();
    void setApppage();
    void setFilepage();
    void setContactpage();


    void setNotConnect();
    void start();
    void adb_check();

    void devices_refresh();

    AnMainwin();
    ~AnMainwin();

public slots:
    void adbSeted();
    void pushbutton_connect_clicked();
    void pushbutton_refresh_clicked();
    void connect_accident_close();
    void connect_close();
};

/*
class _AdbCheckCallback : public AnCallback
{

private:
    AnMainwin * anMainwin;
    AnAdbchoseDialog * dia;
public:
    _AdbCheckCallback(AnMainwin * amw);

    void response(QJsonObject an_response);

public slots:
    void adb_file_chose(QString path);

signals:
    void adb_seted();

};
*/

#endif
